package com.industrial.system.api;

import com.industrial.common.core.constant.ServiceNameConstants;
import com.industrial.common.core.domain.R;
import com.industrial.system.api.domain.SysDept;
import com.industrial.system.api.factory.RemoteUserFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

@FeignClient(contextId = "remoteDeptService", value = ServiceNameConstants.SYSTEM_SERVICE, fallbackFactory = RemoteUserFallbackFactory.class)
public interface RemoteDeptService {

    @PostMapping("/dept/queryDeptNameByDeptId")
    public R<List<SysDept>> queryDeptNameByDeptId(@RequestBody List<String> deptId);
}
